package org.example;

import org.example.dao.PigDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class DICollection {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        PigDao pigDao = (PigDao) applicationContext.getBean("pigDao");
        pigDao.save();
    }
}
